 package junit.test;


import org.junit.After;
import org.junit.Before;
import org.junit.Test;

public class PersonTest2 {

	@Before
	public void setUp() throws Exception {
		System.out.println("所有的测试方法运行之前运行！！");
	}
	
	@Test
	public void testEat(){
		
		cn.itcast.Person p = new cn.itcast.Person();
		p.eat();
		
	}
	
	@Test
	public void testRun(){
		cn.itcast.Person p = new cn.itcast.Person();
		p.run();
	}

	@After
	public void tearDown() throws Exception {
		System.out.println("所有的测试方法运行之后运行！！");
	}

}

